package com.medical.manage.es;

import lombok.Data;
import org.dromara.easyes.annotation.HighLight;
import org.dromara.easyes.annotation.IndexField;
import org.dromara.easyes.annotation.IndexId;
import org.dromara.easyes.annotation.IndexName;
import org.dromara.easyes.annotation.rely.FieldType;
import org.dromara.easyes.annotation.rely.IdType;

import java.util.Date;

/**
 * @BelongsProject: Medical
 * @BelongsPackage: com.medical.manage.es
 * @Author: LX
 * @CreateTime: 2025-03-03  19:15
 * @Description: TODO
 * @Version: 1.0
 */

@IndexName("conslt")
@Data
public class ConsultEs {

    /**
     * 咨讯id
     */
    @IndexId(type = IdType.CUSTOMIZE)
    private Integer consultId;
    /**
     * 咨询标题
     */
    @IndexField(fieldType = FieldType.TEXT,analyzer = "ik_max_word" ,searchAnalyzer = "ik_max_word")
    @HighLight(preTag = "<span style=\"color:red;\">",postTag = "</span>")
    private String consultTitle;
    /**
     * 咨询封面图
     */
    @IndexField(fieldType = FieldType.KEYWORD)
    private String consultImgs;
    /**
     * 发布人
     */
    @IndexField(fieldType = FieldType.KEYWORD)
    private String publisher;
    /**
     * 发布时间
     */
    @IndexField(fieldType = FieldType.KEYWORD)
    private String releaseTime;
    /**
     * 创建时间
     */
    @IndexField(fieldType = FieldType.LONG)
    private Date createTime;
    /**
     * 咨询内容
     */
    @IndexField(fieldType = FieldType.KEYWORD)
    private String content;

}
